<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>照片</title>
	<link rel="stylesheet" type="text/css" href="../css/simple.css" charset="utf-8" />
	<script src="../jcx/1/full.js" charset="utf-8"></script>
	<script src="Photo2.js" charset="utf-8"></script>
</head>

<body>
<h3>照片</h3>
<div align="center">
	<form id="searchForm">
				<label for="albumId">相册</label>
		<select name="albumId">
		<option value=""></option>
		#foreach($album in $albumOptions)
		<option value="$!album.id">$!album.${ref.labelName}</option>
		#end
		</select>
		<label for="title">标题</label>
		<input type="text" name="title" value="" maxlength="255" />
		<label for="path">path</label>
		<input type="text" name="path" value="" maxlength="500" />
		<label for="remark">备注</label>
		<input type="text" name="remark" value="" maxlength="2000" />
		<label for="keyword">关键字</label>
		<input id="keyword" name="keyword" />		&nbsp;&nbsp;<a id="btn_search">搜索</a>
	</form>
</div>
<div style="margin-top:20px">
	<a id="PhotoAddBtn" class="fl">添加</a>
	<a id="PhotoDelBtn" class="fr">删除选中</a>
</div>
<table id="PhotoTable" border="1">
  <tr>
  <th><input type="checkbox" id="checkboxAll" /></th>
  
	<th>编号</th>
	<th>标题</th>
	<th>path</th>
	<th>备注</th>
	<th>相册</th>
	<th>创建时间</th>
	<th>更新时间</th>



	<th>&nbsp;</th>
	<th>&nbsp;</th>
  </tr>


  <tr id="row_template">
	<td><input type="checkbox" name="checkbox" value="" /></td>
	<td>id</td>
	<td>title</td>
	<td>path</td>
	<td>remark</td>
	<td>albumId</td>
	<td>created</td>
	<td>modified</td>


	<td><a class="edit">编辑</a></td>
	<td><a class="del">删除</a></td>
  </tr>

</table>

<br/>

<table border="1">
  <tr>
    <td id="page">

    </td>
  </tr>
</table>

<div id="PhotoEditPanel" style="display:none">
  <form id="PhotoEditForm" name="PhotoEditForm">
    <table border="1">
    		       <tr>
        <td class="tac">编号</td>
        <td><input type="hidden" name="id" value="$!photo.id" /></td>
        <td>&nbsp;</td>
      </tr>
	  		       <tr>
        <td class="tac">标题</td>
        <td><input type="text" name="title" value="" maxlength="255" /></td>
        <td>&nbsp;</td>
      </tr>
	  		       <tr>
        <td class="tac">path</td>
        <td><input type="text" name="path" value="" maxlength="500" /></td>
        <td>&nbsp;</td>
      </tr>
	  		       <tr>
        <td class="tac">备注</td>
        <td><input type="text" name="remark" value="" maxlength="2000" /></td>
        <td>&nbsp;</td>
      </tr>
	  		       <tr>
        <td class="tac">相册</td>
        <td><select name="albumId">
<option value=""></option>
#foreach($album in $albumOptions)
<option value="$!album.id">$!album.${ref.labelName}</option>
#end
</select></td>
        <td>&nbsp;</td>
      </tr>
	  		 		 	      <tr>
        <td>&nbsp;</td>
        <td>
			<input id="PhotoSaveBtn" type="button" value="提交" />
			</td>
        <td>&nbsp;</td>
      </tr>
    </table>
  </form>
</div>


</body>
</html>
